﻿﻿using System;
using System.Collections.Generic;
using System.Web;
namespace WebMvc.App.Models.Tips.Common
{
    public class user
    {
		public string id=null;
		public string group_id=null;
		public string user_name=null;
		public string salt=null;
		public string password=null;
		public string mobile=null;
		public string email=null;
		public string avatar=null;
		public string nick_name=null;
		public string sex=null;
		public string birthday=null;
		public string telphone=null;
		public string area=null;
		public string address=null;
		public string qq=null;
		public string msn=null;
		public string amount=null;
		public string point=null;
		public string exp=null;
		public string status=null;
		public string reg_time=null;
		public string reg_ip=null;
        public string __name__;
        public user(string name)
        {
            this.__name__ = name;
			this.id = string.Format("{0}.id",__name__);
			this.group_id = string.Format("{0}.group_id",__name__);
			this.user_name = string.Format("{0}.user_name",__name__);
			this.salt = string.Format("{0}.salt",__name__);
			this.password = string.Format("{0}.password",__name__);
			this.mobile = string.Format("{0}.mobile",__name__);
			this.email = string.Format("{0}.email",__name__);
			this.avatar = string.Format("{0}.avatar",__name__);
			this.nick_name = string.Format("{0}.nick_name",__name__);
			this.sex = string.Format("{0}.sex",__name__);
			this.birthday = string.Format("{0}.birthday",__name__);
			this.telphone = string.Format("{0}.telphone",__name__);
			this.area = string.Format("{0}.area",__name__);
			this.address = string.Format("{0}.address",__name__);
			this.qq = string.Format("{0}.qq",__name__);
			this.msn = string.Format("{0}.msn",__name__);
			this.amount = string.Format("{0}.amount",__name__);
			this.point = string.Format("{0}.point",__name__);
			this.exp = string.Format("{0}.exp",__name__);
			this.status = string.Format("{0}.status",__name__);
			this.reg_time = string.Format("{0}.reg_time",__name__);
			this.reg_ip = string.Format("{0}.reg_ip",__name__);
        }
        public user()
        {
			this.id = string.Format("{0}.id",__name__);
			this.group_id = string.Format("{0}.group_id",__name__);
			this.user_name = string.Format("{0}.user_name",__name__);
			this.salt = string.Format("{0}.salt",__name__);
			this.password = string.Format("{0}.password",__name__);
			this.mobile = string.Format("{0}.mobile",__name__);
			this.email = string.Format("{0}.email",__name__);
			this.avatar = string.Format("{0}.avatar",__name__);
			this.nick_name = string.Format("{0}.nick_name",__name__);
			this.sex = string.Format("{0}.sex",__name__);
			this.birthday = string.Format("{0}.birthday",__name__);
			this.telphone = string.Format("{0}.telphone",__name__);
			this.area = string.Format("{0}.area",__name__);
			this.address = string.Format("{0}.address",__name__);
			this.qq = string.Format("{0}.qq",__name__);
			this.msn = string.Format("{0}.msn",__name__);
			this.amount = string.Format("{0}.amount",__name__);
			this.point = string.Format("{0}.point",__name__);
			this.exp = string.Format("{0}.exp",__name__);
			this.status = string.Format("{0}.status",__name__);
			this.reg_time = string.Format("{0}.reg_time",__name__);
			this.reg_ip = string.Format("{0}.reg_ip",__name__);
        }
        public override string ToString()
        {
            if (__name__ == null)
            {
                return "user";
            }
            else
            {
                return string.Format("user as {0}",__name__);
            }
        }
    }
}